package com.guxingke.gsb.config;

import com.guxingke.gsb.model.IParseable;
import com.guxingke.gsb.model.Page;
import com.guxingke.gsb.model.Post;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by 孤星可 on 2015/11/25.
 *
 * @author guxingke
 * @since 2015/11/25
 */
public class Constant {
    public static final int DEFAULT_PREVIEW_PORT = 20000;
    public static final String CONTENT_DIRECTORY = "content";
    public static final String OUTPUT_DIRECTORY = "output";
    public static final String GLOBAL_CONFIG_FILENAME = "global.toml";
    public static final String SCAFFOLD_NAME = "scaffold";
    public static final String SITE_CONFIG_FILENAME = "config.toml";
    public static final String THEME_CONFIG_FILENAME = "theme.toml";

    public static final Map<String, Class<? extends IParseable>> LAYOUT_MAPPING = new HashMap<>();

    static {
        LAYOUT_MAPPING.put("post", Post.class);
        LAYOUT_MAPPING.put("page", Page.class);
    }
}
